package com.hou.houlymall.ware.service;

import com.hou.houlymall.ware.vo.MergeVo;
import com.hou.houlymall.ware.vo.PurchaseDoneVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hou.common.utils.PageUtils;
import com.hou.houlymall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2019-11-17 13:50:10
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 表名称：wms_purchase
     * 获取未被领取的采购单
     * @param params 分页参数
     * @return 查询分页结果
     */
    PageUtils queryPageUnaccalimedPurchase(Map<String, Object> params);


    /**
     * 表名称：wms_purchase
     * 合并采购单
     * @param mergeVo ...
     */
    void mergePurchase(MergeVo mergeVo);


    /**
     * 采购人员领取采购单
     * @param ids ...
     */
    void received(List<Long> ids);

    /**
     * 完成采购
     * @param doneVo ...
     */
    void done(PurchaseDoneVo doneVo);


}

